<template>
  <div class="bank" v-loading="loading">
    <div class="first">
      <div class="first-top">
        <div class="top-list" v-for="(item, index) in 2" :key="index">
          <div class="list-title">
            {{ index == 0 ? "卡号" : "时间" }}
          </div>
          <div class="list-input">
            <el-input
              v-if="index == 0"
              v-model="firstCart"
              clearable
              placeholder="请输入卡号"
            ></el-input>

            <el-date-picker
              v-if="index == 1"
              v-model="firstTime"
              value-format="yyyy-MM-dd"
              type="daterange"
              range-separator="至"
              start-placeholder="开始日期"
              end-placeholder="结束日期"
            >
            </el-date-picker>
          </div>
        </div>

        <div class="top-button">
          <div
            class="button"
            v-for="(item, index) in 2"
            :key="index"
            @click="walletFunction(index)"
          >
            {{ index == 0 ? "搜索" : "重置" }}
          </div>
        </div>
      </div>

      <div class="first-bottom">
        <img class="bottom-img" src="../../assets/index/icon-10.png" alt="" />
        <div class="bottom-title">已选择{{ multipleSelectionTotal }}项</div>
        <div class="bottom-title">
          已提现总计：{{ multipleSelectionPrice }}元
        </div>
        <div
          class="bottom-title"
          style="color: #2588fa; text-decoration: underline; cursor: pointer"
          @click.stop="emptyStop"
        >
          清空
        </div>
      </div>
    </div>

    <div class="second">
      <div class="second-table">
        <el-table
          ref="multipleTable"
          :data="tableData"
          tooltip-effect="dark"
          style="width: 100%"
          @selection-change="handleSelectionChange"
          :header-cell-style="{
            color: '#949494',
            backgroundColor: '#F9F9F9',
          }"
          @sort-change="sortChange"
        >
          <!-- 自定义暂无数据 -->
          <template slot="empty">
            <div class="empty-block">
              <img
                class="empty-block-img"
                src="../../assets/common/common-empty.png"
              />
              <div class="empty-block-text">暂无数据～</div>
            </div>
          </template>
          <el-table-column
            type="selection"
            width="100"
            align="center"
          ></el-table-column>
          <el-table-column prop="id" label="钱包ID" width="110" align="center">
          </el-table-column>
          <el-table-column
            prop="account_name"
            label="姓名"
            width="110"
            align="center"
          >
          </el-table-column>
          <el-table-column
            prop="bank_name"
            label="银行名称"
            width="280"
            align="center"
          >
          </el-table-column>
          <el-table-column
            prop="bank_number"
            label="银行卡号"
            width="200"
            align="center"
          >
          </el-table-column>
          <el-table-column
            prop="merchantNo"
            label="商户号"
            width="180"
            align="center"
          >
          </el-table-column>
          <el-table-column
            prop="withraw_money"
            label="已提现金额"
            width="200"
            align="center"
          >
          </el-table-column>
          <el-table-column
            prop="createTime"
            label="创建时间"
            sortable
            width="300"
            align="center"
          >
          </el-table-column>
          <el-table-column prop="" label="操作" width="200" align="center">
            <template slot-scope="scope">
              <div class="operation">
                <div
                  class="operation-list"
                  @click="walletOperation(0, scope.row)"
                >
                  解绑
                </div>
                <div
                  class="operation-list"
                  style="color: #1dc225"
                  @click="walletOperation(1, scope.row)"
                >
                  提现
                </div>
              </div>
            </template>
          </el-table-column>
        </el-table>
      </div>

      <div class="second-pagination">
        <div class="pagination-left">共{{ totalNum }}条数据</div>

        <div class="pagination-right">
          <el-pagination
            @size-change="handleSizeChange"
            @current-change="handleCurrentChange"
            :page-sizes="[10, 30, 50, 100]"
            :page-size="10"
            layout="sizes, prev, pager, next, jumper"
            :total="totalNum"
          ></el-pagination>
        </div>
      </div>
    </div>

    <!--绑卡-->
    <div class="binding">
      <el-dialog title="" :visible.sync="bindingDialogVisible" round>
        <div class="binding-block">
          <div class="block-header">
            <div class="header-title">绑卡</div>

            <img
              @click="bindingClose"
              class="header-close"
              src="../../assets/index/icon-11.png"
              alt=""
            />
          </div>

          <div class="block-center">
            <div class="center-list" v-for="(item, index) in 3" :key="index">
              <div class="list-left">
                {{
                  index == 0
                    ? "预留电话"
                    : index == 1
                    ? "银行卡账号"
                    : index == 2
                    ? "支持银行"
                    : ""
                }}
              </div>
              <div class="list-right">
                <el-input
                  v-if="index == 0"
                  v-model="bindingPhone"
                  clearable
                  placeholder="请输入预留电话"
                ></el-input>
                <el-input
                  v-if="index == 1"
                  v-model="bindingBankCart"
                  clearable
                  placeholder="请输入银行卡账号"
                ></el-input>

                <el-select
                  clearable
                  v-if="index == 2"
                  v-model="bindingSupport"
                  placeholder="请选择支持银行"
                  @change="bindingSupportStop"
                >
                  <el-option
                    v-for="item in supportBank"
                    :key="item.bankName"
                    :label="item.bankName"
                    :value="item.bankName"
                  >
                  </el-option>
                </el-select>
              </div>
            </div>
          </div>

          <div class="block-bottom">
            <div
              class="bottom"
              v-for="(item, index) in 2"
              :key="index"
              @click="bindingFunction(index)"
            >
              {{ index == 0 ? "重置" : "提交" }}
            </div>
          </div>
        </div>
      </el-dialog>
    </div>

    <!--提现-->
    <div class="withdraw">
      <el-dialog title="" :visible.sync="withdrawDialogVisible" round>
        <div class="withdraw-block">
          <div class="block-header">
            <div class="header-title">提现</div>

            <img
              @click="withdrawClose"
              class="header-close"
              src="../../assets/index/icon-11.png"
              alt=""
            />
          </div>

          <div class="block-center">
            <div class="center-list">
              <div class="list-left">提现金额</div>
              <div class="list-right">
                <el-input
                  v-model="withdrawCart"
                  clearable
                  placeholder="请输入提现金额"
                  @input="
                    withdrawCart = withdrawCart.replace(/[^0-9.]/g,'').replace(/\.{2,}/g,'.').replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3')
                  "
                ></el-input>
              </div>
            </div>

            <div class="center-prompt">提现手续费：手续费0.25%，单笔最少手续费1元（当前从平台商户号扣费）</div>
          </div>

          <div class="block-bottom">
            <div
              class="bottom"
              v-for="(item, index) in 2"
              :key="index"
              @click="withdrawFunction(index)"
            >
              {{ index == 0 ? "重置" : "提交" }}
            </div>
          </div>

          <!-- <div class="block-checkout" @click="withdrawCheckoutMet">
            <img
              class="checkout-img"
              :src="
                withdrawCheckout == false
                  ? require('../../assets/index/icon-15.png')
                  : require('../../assets/index/icon-14.png')
              "
              alt=""
            />

            <div class="checkout-title">
              我已经阅读并同意<span
                style="
                  margin-left: 5px;
                  color: #2588fa;
                  text-decoration: underline;
                "
                >支付协议</span
              >
            </div>
          </div> -->
        </div>
      </el-dialog>
    </div>

    <!--提示-->
    <div class="hint">
      <el-dialog title="" :visible.sync="hintDialogVisible1" round>
        <div class="hint-block">
          <img
            class="block-img"
            src="../../assets/common/common-warning.png"
          />
          <div class="block-title">提现到 {{ withdrawHintObj.bank_name }} {{ withdrawHintObj.bank_number }}</div>
          <!-- <div class="block-text">请确认信息，3-7个工作日内打款</div> -->

          <div class="block-bottom" style="margin-top: 40px;">
            <div
              class="bottom"
              v-for="(item, index) in 2"
              :key="index"
              @click="hintFunction1(index)"
            >
              {{ index == 0 ? "取消" : "提交" }}
            </div>
          </div>
        </div>
      </el-dialog>
    </div>

    <!--提示-->
    <div class="hint">
      <el-dialog title="" :visible.sync="hintDialogVisible" round>
        <div class="hint-block">
          <img
            class="block-img"
            src="../../assets/common/common-warning.png"
          />
          <div class="block-title">确认要解绑该钱包吗？</div>
          <div class="block-text">解绑后不可撤回</div>

          <div class="block-bottom" style="margin-top: 20px">
            <div
              class="bottom"
              v-for="(item, index) in 2"
              :key="index"
              @click="hintFunction(index)"
            >
              {{ index == 0 ? "取消" : "提交" }}
            </div>
          </div>
        </div>
      </el-dialog>
    </div>
  </div>
</template>

<script>
import Bus from "../../utils/bus"; // bus发送跳转关闭临时组件

import {
  postbindCardWallet,
  getUserInfoWalletBankWallet,
  postunbindCardWallet,
  postwithdrawWallet,
  getqueryBankListWallet
} from "../../api/wallet.js";

export default {
  data() {
    return {
      ///-----------第一区域
      firstCart: "",
      firstTime: [],
      // 用户时间输入框的时候起始值
      firstTimeA: "",
      // 用户时间输入框的时候结尾值
      firstTimeB: "",
      //------------第二区域
      tableData: [],
      multipleSelection: [],
      multipleSelectionTotal: 0,
      multipleSelectionPrice: 0,
      totalNum: 0,
      page: 1,
      limit: 10,
      //---------绑卡
      bindingDialogVisible: false,
      bindingPhone: "",
      bindingBankCart: "",
      bindingSupport: "",
      supportBank: [],
      merchantNo: "",
      bindingObj: {},
      //---------提现
      withdrawDialogVisible: false,
      withdrawCart: "",
      withdrawWay: "",
      withdrawOptions: [],
      withdrawCheckout: true,
      withdrawHintObj: {},
      //---------提示
      hintDialogVisible: false,
      hintDialogVisible1: false,
      loading: false,
    };
  },
  created() {
    this.merchantNo = this.$route.query.merchantNo;
    this.getUserInfoWalletBankWalletMet();
    this.getqueryBankListWalletMet();
  },
  updated() {
    if (this.$route.query.merchantNo == undefined) {
      Bus.$emit("detele", "internalWalletBank");
    }
  },
  methods: {
    getqueryBankListWalletMet() {
      let params = {
        protocolType: "03",
      };

      getqueryBankListWallet(params).then((res) => {
        if (res.resultStatus == true) {
          this.supportBank = res.resultData.bizResponseJson.bankList;
        }
      });
    },
    getUserInfoWalletBankWalletMet() {
      let params = {
        bank_number: this.firstCart,
        merchantNo: this.$route.query.merchantNo,
        createStartTime: this.firstTimeA,
        createEndTime: this.firstTimeB,
        pageNo: this.page,
        pageSize: this.limit,
      };

      getUserInfoWalletBankWallet(params).then((res) => {
        if (res.resultStatus == true) {
          this.tableData = res.resultData.list;
          this.totalNum = res.resultData.totalNum;
          this.loading = false;
        }
      });
    },
    walletFunction(index) {
      if (index == 0) {
        if (this.firstTime != null) {
          this.firstTimeA = this.firstTime[0];
          this.firstTimeB = this.firstTime[1];
        } else {
          this.firstTimeA = "";
          this.firstTimeB = "";
        }
      } else {
        this.firstCart = "";
        this.firstTime = [];
        this.firstTimeA = "";
        this.firstTimeB = "";
        this.multipleSelectionTotal = 0;
      }

      this.loading = true;

      this.$nextTick(() => {
        this.getUserInfoWalletBankWalletMet();
      });
    },
    walletMet(index) {
      if (index == 0) {
        this.bindingDialogVisible = true;
      }
    },
    // 表格区域点击选中 勾选对应的
    handleSelectionChange(val) {
      let price = 0;

      val.forEach((item, index) => {
        price = Number(price) + Number(item.withraw_money);
      });

      this.multipleSelectionTotal = val.length;
      this.multipleSelectionPrice = price;
      this.multipleSelection = val;
    },
    emptyStop() {
      this.multipleSelection = [];
      this.$refs.multipleTable.clearSelection();
      this.getUserInfoWalletBankWalletMet();
    },
    // 点击监听排序
    sortChange(e) {
      console.log("dianj ", e);
    },
    walletOperation(index, item) {
      this.withdrawHintObj = item;
      if (index == 0) {
        this.hintDialogVisible = true;
      } else {
        this.withdrawDialogVisible = true;
      }
    },

    //------------------绑卡
    bindingClose() {
      this.bindingDialogVisible = false;
    },
    bindingSupportStop(e) {
      this.supportBank.forEach((item, index) => {
        if(item.bankName == e) {
          this.bindingObj = item
        }
      })
    },
    bindingFunction(index) {
      if (index == 0) {
        this.bindingDialogVisible = false;
      } else {
        let params = {
          merchantNo: this.merchantNo,
          accountNo: this.bindingBankCart,
          phone: this.bindingPhone,
          bankName: this.bindingObj.bankName,
          bank_type_id: this.bindingObj.bank_id,
        };

        postbindCardWallet(params).then((res) => {
          if (res.resultStatus == true) {
            this.$message.success("绑定成功！");
            this.bindingDialogVisible = false;
            this.loading = true;
            this.getUserInfoWalletBankWalletMet();
          }
        });
      }
    },
    //-------------------提现
    withdrawClose() {
      this.withdrawDialogVisible = false;
    },
    withdrawCheckoutMet() {
      this.withdrawCheckout = !this.withdrawCheckout;
    },
    withdrawFunction(index) {
      if (index == 0) {
        this.withdrawDialogVisible = false;
      } else {
        if (this.withdrawCheckout == false) {
          this.$message.warning("请先勾选协议！");
          return;
        }

        this.hintDialogVisible1 = true;
      }
    },

    hintFunction1(index) {
      if (index == 0) {
        this.hintDialogVisible1 = false
      } else {
        let params = {
          amount: this.withdrawCart,
          payeeMerchantNo: this.withdrawHintObj.merchantNo,
          linkId: this.withdrawHintObj.linkId,
        };
        postwithdrawWallet(params).then((res) => {
          if (res.resultStatus == true) {
            this.$message.success("提现成功！");
            this.hintDialogVisible1 = false
            this.withdrawDialogVisible = false;
            this.loading = true;
            this.getUserInfoWalletBankWalletMet();
          }
        });
      }
    },

    //-------------解绑提示
    hintFunction(index) {
      if (index == 0) {
        this.hintDialogVisible = false;
      } else {
        let params = {
          id: this.withdrawHintObj.id,
        };

        postunbindCardWallet(params).then((res) => {
          if (res.resultStatus == true) {
            this.$message.success("成功解绑！");
            this.hintDialogVisible = false;

            this.loading = true;
            this.getUserInfoWalletBankWalletMet();
          }
        });
      }
    },

    //----------------------------------------------------------
    //  查询当前页码多少条
    handleSizeChange(val) {
      this.limit = val;
      this.loading = true;
      this.getUserInfoWalletBankWalletMet();
    },
    //  查询当前页
    handleCurrentChange(val) {
      this.page = val;
      this.loading = true;
      this.getUserInfoWalletBankWalletMet();
    },
  },
};
</script>

<style lang="less" scoped>
.bank {
  .first {
    .first-top {
      display: flex;
      align-items: center;
      .top-list {
        display: flex;
        align-items: center;
        margin-right: 12px;

        .list-title {
          font-family: PingFangSC, PingFang SC;
          font-weight: 400;
          font-size: 14px;
          color: #757575;
          margin-right: 12px;
        }

        .list-input {
          /deep/ .el-input__inner {
            width: 174px;
            height: 38px;
            background: #ffffff;
            border-radius: 4px;
          }

          /deep/ .el-input__icon {
            line-height: 38px;
          }

          /deep/ .el-date-editor.el-input {
            width: 174px;
            height: 38px;
          }
        }
      }

      .top-list:nth-child(2) {
        .list-input {
          /deep/ .el-input__inner {
            width: 400px;
            height: 38px;
            background: #ffffff;
            border-radius: 4px;
          }

          /deep/ .el-input__icon {
            line-height: 30px;
          }
        }
      }

      .top-button {
        display: flex;
        align-items: center;

        .button {
          width: 66px;
          height: 38px;
          background: #2588fa;
          border-radius: 4px;
          display: flex;
          align-items: center;
          justify-content: center;

          font-family: PingFangSC, PingFang SC;
          font-weight: 400;
          font-size: 14px;
          color: #ffffff;
          cursor: pointer;
          border: 1px solid #2588fa;
        }

        .button:last-child {
          background: #ffffff;
          color: #949494;
          margin-left: 12px;
          border: 1px solid #dedede;
        }
      }
    }

    .first-center {
      margin-top: 15px;
      display: flex;
      align-items: center;

      .center {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 10px;
        padding: 0 14px;
        box-sizing: border-box;
        height: 38px;
        background: #2588fa;
        border-radius: 4px;
        cursor: pointer;

        .center-title {
          font-family: PingFangSC, PingFang SC;
          font-weight: 400;
          font-size: 14px;
          color: #ffffff;
        }

        .center-img {
          width: 12px;
          height: 12px;
          margin-right: 8px;
        }
      }
    }

    .first-bottom {
      margin-top: 16px;
      display: flex;
      align-items: center;
      height: 38px;
      background: #edf5ff;
      border-radius: 4px;
      border: 1px solid #aed4ff;
      padding: 0 16px;
      box-sizing: border-box;

      .bottom-img {
        width: 14px;
        height: 14px;
        margin-right: 11px;
      }

      .bottom-title {
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        font-size: 14px;
        color: #292929;
        margin-right: 17px;
      }
    }
  }

  .second {
    margin-top: 16px;
    .second-table {
      /deep/ .el-table thead {
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        font-size: 14px;
        color: #949494;
      }

      /deep/ .el-table tr {
        height: 46px;
      }

      /deep/ .el-table__empty-text {
        line-height: 0;
      }

      /deep/ .el-table .el-table__cell {
        padding: 0;
      }

      .empty-block {
        margin-top: 62px;
        padding-bottom: 40px;

        .empty-block-img {
          width: 130px;
          height: 130px;
          margin: 0 auto;
        }

        .empty-block-text {
          font-size: 12px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: #999999;
          margin-top: 10px;
          height: 17px;
          line-height: 17px;
        }
      }

      .operation {
        display: flex;
        align-items: center;
        justify-content: center;

        .operation-list {
          font-size: 14px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: #2588fa;
          text-decoration: underline;
          cursor: pointer;
          margin-right: 16px;
        }
      }
    }

    .second-pagination {
      height: 75px;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;

      .pagination-left {
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        font-size: 15px;
        color: #949494;
      }

      .pagination-right {
        /deep/ .el-pagination .btn-prev {
          padding: 0;
          width: 30px;
          height: 30px;
          background: #f4f5f9;
          border-radius: 2px;
          border: 1px solid #d9d9d9;
          margin-right: 8px;
        }

        /deep/ .el-pagination .btn-next {
          padding: 0;
          width: 30px;
          height: 30px;
          background: #f4f5f9;
          border-radius: 2px;
          border: 1px solid #d9d9d9;
        }

        /deep/ .el-pager li {
          padding: 0;
          width: 30px;
          height: 30px;
          border-radius: 2px;
          background: #f4f5f9;
          border: 1px solid #d9d9d9;
          line-height: 30px;
          margin-right: 8px;
          font-family: PingFangSC, PingFang SC;
          font-weight: 400;
          font-size: 15px;
          color: #949494;
        }

        /deep/ .el-pager li.active {
          background: #2588fa;
          color: #ffffff;
        }

        /deep/ .el-input--mini .el-input__inner {
          height: 30px;
          background: #f4f5f9;
        }

        /deep/ .el-input__inner {
          font-size: 14px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: rgba(0, 0, 0, 0.65);
        }
      }
    }
  }

  .binding {
    /deep/ .el-dialog {
      width: 494px;
      height: 286px;
      background: #ffffff;
      border-radius: 6px;
    }

    /deep/ .el-dialog__body {
      padding: 0;
    }

    .binding-block {
      .block-header {
        width: 100%;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        background: #f8f8f8;

        .header-title {
          font-family: PingFangSC, PingFang SC;
          font-weight: 600;
          font-size: 16px;
          color: #292929;
        }

        .header-close {
          position: absolute;
          right: 20px;
          width: 14px;
          height: 14px;
          cursor: pointer;
          margin-top: 5px;
        }
      }

      .block-center {
        margin-top: 20px;
        padding: 0 23px;
        box-sizing: border-box;

        .center-list {
          display: flex;
          align-items: center;
          height: 38px;
          margin-bottom: 12px;

          .list-left {
            font-family: PingFangSC, PingFang SC;
            font-weight: 400;
            font-size: 14px;
            color: #555555;
            width: 20%;
            text-align: right;
            margin-right: 2%;
          }

          .list-right {
            width: 78%;

            /deep/ .el-input__inner {
              width: 100%;
              height: 38px;
              background: #ffffff;
              border-radius: 4px;
            }

            /deep/ .el-select {
              width: 100%;
            }
          }
        }
      }

      .block-bottom {
        padding: 0 23px;
        box-sizing: border-box;
        margin-top: 20px;
        display: flex;
        align-items: center;
        justify-content: flex-end;

        .bottom {
          cursor: pointer;
          width: 72px;
          height: 40px;
          background: #ffffff;
          border-radius: 4px;
          border: 1px solid #dedede;
          display: flex;
          justify-content: center;
          align-items: center;

          font-family: PingFangSC, PingFang SC;
          font-weight: 400;
          font-size: 14px;
          color: #949494;
        }

        .bottom:last-child {
          background: #2588fa;
          color: #ffffff;
          margin-left: 12px;
          border: 1px solid #2588fa;
        }
      }

      .block-checkout {
        padding: 0 23px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        margin-top: 15px;
        cursor: pointer;
        justify-content: flex-end;

        .checkout-img {
          width: 12px;
          height: 12px;
          margin-right: 4px;
        }

        .checkout-title {
          font-family: PingFangSC, PingFang SC;
          font-weight: 400;
          font-size: 12px;
          color: #a3a3a3;
        }
      }
    }
  }

  .withdraw {
    /deep/ .el-dialog {
      width: 400px;
      max-height: 220px;
      border-radius: 6px;
    }

    /deep/ .el-dialog__body {
      padding: 0;
    }

    .withdraw-block {
      .block-header {
        height: 48px;
        border-radius: 10px 10px 10px 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        background: #f8f8f8;

        .header-title {
          font-family: PingFangSC, PingFang SC;
          font-weight: 600;
          font-size: 16px;
          color: #292929;
        }

        .header-close {
          position: absolute;
          right: 20px;
          width: 14px;
          height: 14px;
          cursor: pointer;
          margin-top: 5px;
        }
      }

      .block-center {
        margin-top: 20px;
        padding: 0 23px;
        box-sizing: border-box;

        .center-list {
          display: flex;
          align-items: center;
          height: 38px;
          margin-bottom: 12px;

          .list-left {
            font-family: PingFangSC, PingFang SC;
            font-weight: 400;
            font-size: 14px;
            color: #555555;
            width: 20%;
            text-align: right;
            margin-right: 2%;
          }

          .list-right {
            width: 78%;

            /deep/ .el-input__inner {
              width: 100%;
              height: 38px;
              background: #ffffff;
              border-radius: 4px;
            }

            /deep/ .el-select {
              width: 100%;
            }
          }
        }

        .center-prompt {
          font-family: PingFangSC, PingFang SC;
          font-weight: 400;
          font-size: 12px;
          color: #6e93be;
          margin-top: 8px;
          margin-bottom: 12px;
          padding-left: 25%;
          box-sizing: border-box;
        }
      }

      .block-bottom {
        padding: 0 23px 20px;
        box-sizing: border-box;
        margin-top: 20px;
        display: flex;
        align-items: center;
        justify-content: flex-end;

        .bottom {
          cursor: pointer;
          width: 72px;
          height: 40px;
          background: #ffffff;
          border-radius: 4px;
          border: 1px solid #dedede;
          display: flex;
          justify-content: center;
          align-items: center;

          font-family: PingFangSC, PingFang SC;
          font-weight: 400;
          font-size: 14px;
          color: #949494;
        }

        .bottom:last-child {
          background: #2588fa;
          color: #ffffff;
          margin-left: 12px;
          border: 1px solid #2588fa;
        }
      }

      .block-checkout {
        padding: 0 23px 10px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        margin-top: 15px;
        cursor: pointer;
        justify-content: flex-end;

        .checkout-img {
          width: 12px;
          height: 12px;
          margin-right: 4px;
        }

        .checkout-title {
          font-family: PingFangSC, PingFang SC;
          font-weight: 400;
          font-size: 12px;
          color: #a3a3a3;
        }
      }
    }
  }

  .hint {
    /deep/ .el-dialog {
      width: 350px;
      height: 220px;
      background: #ffffff;
      border-radius: 6px;
    }

    /deep/ .el-dialog__body {
      padding: 0;
    }

    .hint-block {
      padding: 24px;
      box-sizing: border-box;

      .block-img {
        width: 48px;
        height: 48px;
        margin: 0 auto;
        border-radius: 50%;
        display: flex;
      }

      .block-title {
        font-family: PingFangSC, PingFang SC;
        font-weight: 600;
        font-size: 16px;
        color: #555555;
        margin-top: 16px;
        text-align: center;
      }

      .block-text {
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        font-size: 14px;
        color: #949494;
        text-align: center;
      }

      .block-bottom {
        padding: 0 23px;
        box-sizing: border-box;
        margin-top: 40px;
        display: flex;
        align-items: center;
        justify-content: center;

        .bottom {
          cursor: pointer;
          width: 80px;
          height: 38px;
          background: #ffffff;
          border-radius: 4px;
          border: 1px solid #dedede;
          display: flex;
          justify-content: center;
          align-items: center;

          font-family: PingFangSC, PingFang SC;
          font-weight: 400;
          font-size: 14px;
          color: #949494;
        }

        .bottom:last-child {
          background: #2588fa;
          color: #ffffff;
          margin-left: 20px;
          border: 1px solid #2588fa;
        }
      }
    }
  }
}
</style>